import './App.scss'
import Home from './pages/homeCom/Home'
import Consult from './pages/consult/Consult'
import Lookinghome from './pages/lookinghome/Lookinghome'
import My from './pages/my/My'
import { Switch, Route, Redirect } from 'react-router-dom'
import Citylist from './pages/citylist/Citylist'
import Map from './pages/map/Map'
import Search from './components/search/Search'
import Housedetail from './pages/houseDetail/Housedetail'
function App() {

  return (
    <div className="App">
      <Switch>
        <Route path="/home" component={Home} />
        <Route path="/consult" component={Consult} />
        <Route path="/lookinghome" component={Lookinghome} />
        <Route path="/my" component={My} />
        <Route path="/citylist" component={Citylist} />
        <Route path="/map" component={Map}/>
        <Route path="/search" component={Search}/>
        <Route path='/housedetail' component={Housedetail} />
        <Redirect to="/home" />
      </Switch>
    </div>
  )
}

export default App
